package com.guofen.dao;

import com.guofen.pojo.SjqWaterProductionElectricityConsumption;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqWaterProductionElectricityConsumptionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqWaterProductionElectricityConsumption record);

    int insertSelective(SjqWaterProductionElectricityConsumption record);

    SjqWaterProductionElectricityConsumption selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SjqWaterProductionElectricityConsumption record);

    int updateByPrimaryKey(SjqWaterProductionElectricityConsumption record);

    SjqWaterProductionElectricityConsumption findLast();

    List<SjqWaterProductionElectricityConsumption> selectAll();

    List<SjqWaterProductionElectricityConsumption> selectByDate(@Param("startDate") String startDate,
                                            @Param("endDate") String endDate);
}